package com.tjcd.project.library_base.room.utils;

import androidx.annotation.Keep;

import com.tjcd.project.library_base.BaseApplication;
import com.tjcd.project.library_base.room.CustomRoomDatabase;
import com.tjcd.project.library_base.room.dao.UserDao;

/**
 * @Author jiangKunKun
 * @CreateDate 2022/2/21
 * @Description
 * @SpittingGrooves
 */
@Keep
public class RoomUtil {

    /**
     * 用户基本信息
     */
    public static UserDao sUserDao;

    public static void initDao() {
        CustomRoomDatabase instance = CustomRoomDatabase.getInstance(BaseApplication.getInstance());
        sUserDao = instance.mUserDao();
    }

}
